package  com.android.demo.testnative;
public class NativeAPI {
private static final String TAG =  "TestJni ";
static {
System.loadLibrary("testnative");
}
//从c++ so 中获取字符串
public native String stringFromJNI();
//c++ so 中回调的java方法
public void callBackFromNative(String strFromNative) {
System.out.println(TAG+ "callBackFromNative() strFromNative:" + strFromNative);
}
public static void main(String[] args){

    NativeAPI nativeAPI = new NativeAPI();
    nativeAPI.stringFromJNI();


}
}
